package protocol.JT905_2014;

public class Handle905_2014JT05 implements IHandle905_2014JT {
    @Override
    public String handle(JT_905_2014Cmd cmd) {
        byte subOrder = cmd.subOrder();

        switch (subOrder){
            case 0x00:
                return handle0500(cmd);
            default:
                return "905:未匹配的命令字"+(cmd.readOrder()+","+cmd.readSubOrder());
        }
    }

    private String handle0500(JT_905_2014Cmd cmd) {
        StringBuilder builder = new StringBuilder();
        builder.append("终端->平台:车辆控制应答");
        builder.append("\r\n");
        builder.append("应答流水号:"+cmd.readInt(2));
        builder.append("\r\n");

        JT905_2014Utils.handle0200ALL(builder,cmd);
        return builder.toString();
    }

}
